package com.qfjy.controller;

import com.qfjy.service.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName DemoController
 * @Description TODO
 * @Author guoweixin
 * @Date 2023/4/17
 * @Version 1.0
 */
@Controller
@RequestMapping("demo")
@Slf4j
public class DemoController {


    @Autowired
    private DemoService demoService;

    @ResponseBody
    @GetMapping("list")
    public Object list(){
        log.info("微信微服务");
        return demoService.selectList();
    }
}
